﻿@{
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(       
 Html.nbGridFor<V_MaterialDeliveryPlan>(s =>
 {
     s.Title("选择品名");
     s.Action(@Url.Action("LookUp"));
     s.layoutH(111);
     s.Columns(c =>
     {
         c.Bind(e => e.Id).IsKey();
         c.BindDateTime(m => m.Date).Width(70).Title("送货日期").AsSearch();
         c.BindEnum(m => m.SiteId, "ProjectSite").Title("项目点");
         c.BindEnum(m => m.DishCategory, "DishType").Title("菜肴类别").AsSearch();
         c.Bind(m => m.DishName).Width(100).Align(GridAlign.Left).Title("菜肴名称").AsQuery().AsSearch();
         c.BindEnum(m => m.Category, "MaterialCategory").Width(60).Title("品名分类").AsSearch();
         c.Bind(m => m.Name).Width(100).Align(GridAlign.Left).Title("品名名称").AsQuery().AsSearch();
         c.Bind(m => m.Code).Width(60).Title("品名编号").AsQuery().AsSearch();
     });
     s.Buttons(b =>
     {
         b.BindSelectButton();
         b.BindCancelButton();
     });
 }))
